--- import { getEntryBySlug, getCollection } from "astro:content"; const { slug } = Astro.params; const post = await getEntryBySlug('blog', slug); const { Content } = await post.render(); export async function getStaticPaths() { const blogEntries = await getCollection('blog'); return blogEntries.map(entry => ({ params: { slug: entry.slug }, props: { entry }, })); } --- Content od='get'> Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/docs/src/components/MenuToggle.tsx (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2021-07-15remove sub-format scriptGravatar Fred K. Schott 1-2/+1
2021-07-15add site analyticsGravatar Fred K. Schott 1-0/+9
2021-07-15add docs link to blog post headerGravatar Fred K. Schott 1-3/+13
2021-07-15fix import.meta docs referenceGravatar Fred K. Schott 1-3/+6
2021-07-15[ci] yarn formatGravatar FredKSchott 1-1/+6